package org.aepscolombia.platform.models.entity;
// Generated Jan 13, 2014 2:36:33 PM by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * SeedsColors generated by hbm2java
 */
@Entity
@Table(name="seeds_colors"
    ,catalog="madr_bd10"
)
public class SeedsColors  implements java.io.Serializable {


     private Integer idSeeCol;
     private String colorSeeCol;
     private Boolean statusSeeCol;
     private Set maizes = new HashSet(0);
     private Set genotypeses = new HashSet(0);

    public SeedsColors() {
    }

    public SeedsColors(String colorSeeCol, Boolean statusSeeCol, Set maizes, Set genotypeses) {
       this.colorSeeCol = colorSeeCol;
       this.statusSeeCol = statusSeeCol;
       this.maizes = maizes;
       this.genotypeses = genotypeses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_see_col", unique=true, nullable=false)
    public Integer getIdSeeCol() {
        return this.idSeeCol;
    }
    
    public void setIdSeeCol(Integer idSeeCol) {
        this.idSeeCol = idSeeCol;
    }
    
    @Column(name="color_see_col", length=45)
    public String getColorSeeCol() {
        return this.colorSeeCol;
    }
    
    public void setColorSeeCol(String colorSeeCol) {
        this.colorSeeCol = colorSeeCol;
    }
    
    @Column(name="status_see_col")
    public Boolean getStatusSeeCol() {
        return this.statusSeeCol;
    }
    
    public void setStatusSeeCol(Boolean statusSeeCol) {
        this.statusSeeCol = statusSeeCol;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="seedsColors")
    public Set getMaizes() {
        return this.maizes;
    }
    
    public void setMaizes(Set maizes) {
        this.maizes = maizes;
    }
@ManyToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY)
    @JoinTable(name="genotypes_colors", catalog="madr_bd10", joinColumns = { 
        @JoinColumn(name="id_seed_color_gen_col", nullable=false, updatable=false) }, inverseJoinColumns = { 
        @JoinColumn(name="id_genotype_gen_col", nullable=false, updatable=false) })
    public Set getGenotypeses() {
        return this.genotypeses;
    }
    
    public void setGenotypeses(Set genotypeses) {
        this.genotypeses = genotypeses;
    }




}


